package cn.iocoder.yudao.module.dating.dal.mysql.smallNote;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.dating.dal.dataobject.order.PayWalletOrderDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>  </p>
 */
@Mapper
public interface PayWalletOrderMapper extends BaseMapperX<PayWalletOrderDO> {
    default int updateByIdAndPayed(Long id, boolean wherePayed, PayWalletOrderDO updateObj) {
        return update(updateObj, new LambdaQueryWrapperX<PayWalletOrderDO>()
                .eq(PayWalletOrderDO::getId, id).eq(PayWalletOrderDO::getPayStatus, wherePayed));
    }
}
